Superior Particle Sourcing
Overview
Acceleration and Jerk based particle sourcing
Setup
Calculate Physics Attributes
- Compute or generate velocity attribute
- Compute or generate acceleration attribute. This can be done by swapping the Velocity attribute with Position in a side chain, and computing Velocity and Acceleration again
- Compute or generate jerk attribute. This is done in the previous step when calculating the acceleration of the velocity.
- If doing the side chain method, put them back on the source geometry by mapping the side chain's Position to source Velocity, Velocity to Acceleration, and Acceleration to Jerk.
- Ensure the names are
v@emitv
,v@emita
, andv@emitj
, which should be picked up by the modified POP Source node.
Modify POP Source Node
Placed right after the setup_life
node inside the POP Source
DOP.
Wrangle 1:
float bias = point(1, "bias", i@ptnum) * @TimeInc;
v@P = v@P +
v@v * bias +
v@accel * bias * bias * .5;
v@v = v@vemit +
v@aemit * bias +
v@jemit * bias * bias * .5;
Wrangle 2 (second input on Wrangle 1):
f@bias = -(f@age + @TimeInc) / @TimeInc;
Kev suspects this can be easily combined into one wrangle: Notes: upon a test, it did appear to not be the same, unsure why though
float bias = -(f@age + @TimeInc);
v@P = v@P +
v@v * bias +
v@accel * bias * bias * .5;
v@v = v@vemit +
v@aemit * bias +
v@jemit * bias * bias * .5;